import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'antd';

// 展示组件
export default function GraphicList({informationList}){
    return (
        <ul>
            {informationList.map((info, i) => {
                return <li key={i}>
                    <img src={info.thumbnail} alt="" />
                    <Button type="primary">{info.title}</Button>
                </li>
            })}
        </ul>
    )
}

GraphicList.propTypes = {
    informationList: PropTypes.array
}
